<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%@ include file="/common/hallimport.jsp" %>
<link href="${ctx}/css/hall.css" rel="stylesheet">
<link href="${ctx}/css/web_style.css" rel="stylesheet">
<link href="${ctx}/css/dtbj.css" rel="stylesheet">
<script src="${ctx}/js/web/tab.js"></script>
<title>动态报价大厅</title>
</head>
<body>
<%@ include file="/common/halltop_dtbj.jsp" %>
<!-- 搜索结束 -->
<div  id="content" class="fixedw">
    <div class="main" style="margin-top:20px;">
	<div class="searchForm">
	<form id="runningList_form">
		<input type="hidden" name="page"  value="1">
		<input type="hidden" name="rows"  value="13" id="rows">
		<input type="hidden" name="direction"  value="T">
		<input type="hidden" name="bidMode"  value="1">
		<input type="hidden" name="methodKey"  value="itemList">
		<input type="hidden" name="ifBidDyn"  value="T">
		<input type="hidden" name="tag"  value="table" id="tag">
		<!-- <select name="itemStatus">
		<option value="2">所有状态</option>
		<option value="B">自由报价期</option>
		<option value="C">限时报价期</option>
		</select>
		 -->
		<input type="text" name="itemName"  value=""  tip="标的名称" placeholder="标的名称" />
		<a class="searchbtn" iconCls="icon-search" onclick="runningListSearch();">查询</a>
	</form>
	</div>
	
	<div class="dtbj_div">
	 <table id="runningList_table"  class="dt_pro3" cellspacing=0 cellpadding=0 style="table-layout:fixed;margin-top:4px;">
		<tr class='active' id="title2" >
			<th  class="right_border" width='25%'>标的名称</th>
			<th  class="right_border" width='9%'>竞价方式</th>
			<th  class="right_border" width='8%'>起始价格</th>
			<th  class="right_border" width='8%'>当前价格</th>	
			<th  class="right_border" width='8%'>报价次数</th>
			<th  class="right_border" width='8%'>最高报价人</th>
			<th  class="right_border" width='10%'>竞价状态</th>
			<th  class="" width='14%'>剩余时间</th>		
		</tr>
	</table>
	</div>	
	
	<div id="runningList_page" class="web_pages"></div>
	<script type="text/template" id="runningList_table_html">
	<? for ( var i = 0; i < rows.length; i++) {?>
		<tr id=item_<?=rows[i].itemId?>>
			<td   class="right_border" onclick="gotohall('<?=rows[i].itemId?>');">
				<input type="hidden" name="ids" value="<?=rows[i].itemId?>" />
				<?=rows[i].itemName?>
			</td>
			<td class="right_border"><?=bidModeText(rows[i].bidMode)?></td>
			<td class="right_border"><?=rows[i].firstValuePre?></td>
			<td class="right_border" id=value_<?=rows[i].itemId?>>------</td>
			<td class="right_border" id=num_<?=rows[i].itemId?>>------</td>
			<td class="right_border" id=user_<?=rows[i].itemId?>>------</td>
			<td class="right_border" id=status_<?=rows[i].itemId?>>------</td>
			<td id=sptime_<?=rows[i].itemId?>>------</td>
		</tr>
	<?}?>  		
	</script>
</div>
</div>
<%@ include file="/common/hallbottom.jsp" %>	
<script>
dtbjList="T";
var itermIds = "";
bidMode=1;
//查询提交
function runningListSearch(){
	searchSubmit("hall","runningList");
}

function gotohall(itemId){
	//alert(sessionId);
	window.location.href= ctx+spaceDomain+"hall/item/"+itemId;
}

//初始化加载
$(function(){
	//加载分页列表
	runningListSearch();
	//myLoad();
	setInterval(myLoad,3000);
	
});

</script>
</body>
</html>



